using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class UI : MonoBehaviour
{
   [SerializeField]   private Text timeText;
   [SerializeField]  private GameObject gameOverPanel; 
   [SerializeField]  private GameObject winPanel;
    void Start()
    {
        // timeText = GameObject.Find("TimeText").GetComponent<Text>();
        // gameOverPanel = GameObject.Find("GameOverPanel");
        // winPanel = GameObject.Find("WinPanel");
        gameOverPanel.SetActive(false);
    }
     public void UpdateTime(float time)
     {
        timeText.text = "Time: " + time.ToString("0.00")+" s";
     }
     public void ShowGameOverPanel()
     {
        gameOverPanel.SetActive(true);
     }
     public void ShowWinPanel()
     {
        winPanel.SetActive(true);
     }
}
